package cevent.source.cloudcenter.server.excel;/**
 * Created by Cevent on 2021/7/14.
 */

/**
 * @author cevent
 * @description 测试写入excel
 * @date 2021/7/14 16:03
 */
public class EasyExcelTestWrite {
    /*public static void main(String[] args) {
        List<EasyExcelTestDomain> testDomainList=new ArrayList<>();
        for(int i=0;i<10;i++){
            EasyExcelTestDomain testDomain=new EasyExcelTestDomain();
            testDomain.setId(i);
            testDomain.setUsername("刘红飞"+i);
            testDomainList.add(testDomain);
        }
        //文件路径
        String excelPath="D:\\myeclipse2017\\easyexcel_test1.xlsx";
        //调用方法，写操作,sheet设置excel中每个sheet的name
        //doWrite接收list
        EasyExcel.write(excelPath,EasyExcelTestDomain.class).sheet("用户信息表").doWrite(testDomainList);
    }*/
}
